<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>我的信息</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!-------------jquery库-------------->
  	<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
	<!-------------Amazeui--------------->
    <script type="text/javascript" src="js/amazeui.js"></script>
    <link rel="stylesheet" type="text/css" href="css/amazeui.css">
    <!------------核心样式-------------->
    <link rel="stylesheet" type="text/css" href="css/user.css">
	<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>


<!-------------------版头c------------------->
<div th:replace="header-c"></div>
<!-----------------用户banner,快速导航---------------->
<div th:replace="header-my"></div>
<!-----------------框架---------------->
<div class="cw1000">
	<div class="w280 fl">
		<div class="public_box">
			<!-----------------设置导航---------------->
			<div id="set_nav">
				<ul>
					<li><a th:href="@{/my_info}"><i class="ico1"></i>我的信息</a></li>
					<li><a th:href="@{my_contact}"><i class="ico3"></i>收货地址</a></li>
					<li><a th:href="@{/security}"><i class="ico4"></i>修改密码</a></li>
				</ul>
			</div>
		</div>	
	</div>
	<div class="w700 fr">
		<div class="public_box">
			<!-----------------我的信息---------------->
			<div id="set_box">
				<div class="title"><h2>我的信息</h2></div>
				<form id="userForm" name="userForm" method="post" th:action="@{/my_info}">
				<table class="table_list">

					<!--            1-->

						<!--                2-->
						<input type="hidden" name="_method" value="PUT"/>
					<tr>
						<th>昵称：</th>
<!--						<td><input class="text" type="text" value="Alpha"/></td>-->
						<td><input name="userName" id="userName" class="text" type="text" th:value="${session.user.userName}"/></td>
					</tr>
					<tr>
						<th>性别：</th>
						<td>
							<label class="am-radio">
								<input class="radio" type="radio" name="gender" value="2" th:checked="${session.user.gender == 2 ? true : false}" > 男
							</label>
							<label class="am-radio">
<!--								<input class="radio" type="radio" name="gender" value="1" data-am-ucheck> 女-->
								<input class="radio" type="radio" name="gender" value="1" th:checked="${session.user.gender == 1 ? true : false}"> 女
							</label>
						</td>
					</tr>
					<tr>
						<th>居住城市：</th>
<!--						<td><input class="text" type="text" value="洛阳"/></td>-->
						<td><input name="address" id="address" class="text" type="text" th:value="${session.user.address}"/></td>
					</tr>
					<tr>
						<th>出生日期：</th>
<!--						<td><input type="text" readonly="true" class="text"></td>-->
						<td><input name="birthday" id="birthday" type="text" readonly="true" class="text" onclick="WdatePicker();"
								   th:value="${#dates.format(session.user.birthday,'yyyy-MM-dd')}"></td>
					</tr>
<!--					<tr>-->
<!--						<th>个人签名：</th>-->
<!--&lt;!&ndash;						<td><textarea placeholder="例：一场说走就走的旅行，不必在乎终点！">Dream of starting！</textarea></td>&ndash;&gt;-->
<!--						<td><input name="signature" id="signature" class="text" type="text" th:value="${user.signature}"/></td>-->
<!--					</tr>-->


				</table>
				<div class="operation"><input type="submit" class="save" value="保存" /></div>
				</form>

			
			</div>
		</div>	
	</div>
	<div class="clear"></div>
</div>
<!-----------------版底---------------->
<div th:replace="footer"></div>
</body>
</html>